package com.oig.sys.base.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Schema
@Data
public class CurrRateVo {
    @Schema(description = "id")
    private Integer id;

    @Schema(description = "币种代码")
    private String currency;

    @Schema(description = "对人民币汇率")
    private BigDecimal rmbRate;

    @Schema(description = "对美元汇率")
    private BigDecimal usdRate;

    @Schema(description = "银行买入对人民币汇率")
    private BigDecimal bankRmbBrate;

    @Schema(description = "银行买入对美元汇率")
    private BigDecimal bankUsdBrate;

    @Schema(description = "银行卖出对人民币汇率")
    private BigDecimal bankRmbSrate;

    @Schema(description = "银行卖出对美元汇率")
    private BigDecimal bankUsdSrate;

    /**
     * 标识是否是海关汇率。0：不是，1：是
     */
    @Schema(description = "汇率类型，0：银行挂牌价，1：海关汇率")
    private String customsFlag;

    @Schema(description = "汇率源")
    private String rateSource;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "汇率发布时间")
    private Date rateTime ;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "最后更新时间")
    private Date updateTime;
}
